/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Arrays;

/**
 * <p>Project: javase2203 - Arr2
 * <p>Powered by webrx On 2022-07-12 14:39:57
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Arr2 {
    public static void main(String[] args) {
        int[] nums = {3, 4, 5};
        System.out.println(nums.length);
        String[] ns = {"张三", "李四", "王五"};
        System.out.println(ns.length);

        double[] ds = new double[]{1.0, 2.1, 3.2, 4.3, 5.4};
        System.out.println(ds.length);
        ds[1] = 9.9999;
        ds[-2] = .5;
        System.out.println(ds[1]);

        System.out.println(ds);
        System.out.println(Arrays.toString(ds));
    }
}
